import Vue from 'vue'
import App from './App.vue'
import router from './router'
//懒加载插件，可用于图片懒加载
import VueLazyload from 'vue-lazyload'
// 解决移动端300ms延时插件
import Fastclick from 'fastclick'
Fastclick.attach(document.body)
Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()

// 轮播插件swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'

import 'swiper/css/swiper.css'

Vue.use(VueAwesomeSwiper);
// 安装懒加载插件
Vue.use(VueLazyload, {
    loading: require('@/assets/img/loading.gif'), //正在加载中显示图片
    error: require('@/assets/img/errorload.jpg') //加载出错显示图片
})
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')